const express = require('express')

const router = express.Router()
// 注册
const expressJoi = require('@escook/express-joi') //自动对表单数据进行验证
const {rules} = require('./rules')  //定义校验规则的中间件
const zhuce = require('./interface/zhuce')
router.post('/initial/zhuce',expressJoi(rules), zhuce)
// 登录
const login = require('./interface/login')
router.post('/initial/login', login)
// post demo
const demo = require('./demo/demo')
router.post('/demo', demo)
// get demo
const getdemo = require('./demo/getDemo')
router.get('/getdemo', getdemo)


module.exports = router